<!--
 * @Description: js事件
 * @Author: rendc
 * @Date: 2025-10-21 14:48:04
 * @LastEditors: rendc
 * @LastEditTime: 2025-10-21 14:50:55
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      display: inline-block;
      display: block;
      display: inline;
      display: flex;
      /* css隐藏元素的几种方法 */
      /* 透明度 */
      /* overflow: hidden; */
      display: none;

    }
  </style>
</head>

<body>
  <button onclick="this.style.display='none'"> 点我后我就消失了 </button>
</body>

</html>